#include "get_avatars_thread.h"

#include "0-data/db/avatar_db.h"

GetAvatarsThread::GetAvatarsThread(QObject *parent)
    : QThread(parent)
{

}

void GetAvatarsThread::GetResult(QList<Avatar> &list)
{
    list.clear();
    list = result_;
}

void GetAvatarsThread::run()
{
    AvatarDb db;
    db.GetAllAvatars(result_);
}
